---
page_title: "cloudflare_tunnel_virtual_network Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a resource, that manages Cloudflare tunnel virtual networks
  for Zero Trust. Tunnel virtual networks are used for segregation of
  Tunnel IP Routes via Virtualized Networks to handle overlapping
  private IPs in your origins.
---

# cloudflare_tunnel_virtual_network (Resource)

Provides a resource, that manages Cloudflare tunnel virtual networks
for Zero Trust. Tunnel virtual networks are used for segregation of
Tunnel IP Routes via Virtualized Networks to handle overlapping
private IPs in your origins.

## Example Usage

```terraform
resource "cloudflare_tunnel_virtual_network" "example" {
  account_id = "f037e56e89293a057740de681ac9abbe"
  name = "vnet-for-documentation"
  comment = "New tunnel virtual network for documentation"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account_id` (String) The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
- `name` (String) A user-friendly name chosen when the virtual network is created.

### Optional

- `comment` (String) Description of the tunnel virtual network.
- `is_default_network` (Boolean) Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and Teams Clients in the account route through this virtual network, unless specified otherwise for each case.

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_tunnel_virtual_network.example <account_id>/<vnet_id>
```
